import request from '@/utils/request'

//获取列表
export function GetModelList(data) {
    return request({
        url: '/ytjyadmin/EPackage/GetModelList',
        method: 'post',
        data
    })
}

//新增或者编辑
export function PostModel(data) {
    return request({
        url: '/ytjyadmin/EPackage/PostModel',
        method: 'post',
        data
    })
}

//获取删除
export function DeleteModel(id) {
    return request({
        url: '/ytjyadmin/EPackage/DeleteModel?id=' + id,
        method: 'get'
    })
}

//获取关联的列表
export function GetPackageCourseList(data) {
    return request({
        url: '/ytjyadmin/EPackage/GetPackageCourseList',
        method: 'post',
        data
    })
}

//保存关联的列表
export function SavePackageCourse(data) {
    return request({
        url: '/ytjyadmin/EPackage/SavePackageCourse',
        method: 'post',
        data
    })
}

//获取关联的列表
export function GetPackageUserList(data) {
    return request({
        url: '/ytjyadmin/EPackage/GetPackageUserList',
        method: 'post',
        data
    })
}

//保存关联的列表
export function SavePackageUser(data) {
    return request({
        url: '/ytjyadmin/EPackage/SavePackageUser',
        method: 'post',
        data
    })
}